import random as r
n = int(input())
count = 0
for i in range(n):
    b = r.randint(-100, 100)
    c = r.randint(-100, 100)
    if b > -7 and b < 5 and c > -8 and c < 5:
        count = count + 1
print('Количество выстрелов:', n)
print('Количество попаданий:', count)
